declare const array: number[];
declare const stringArray: object[];

array.sort();

function fssa(a: Array<any>) {
  a.sort();
}

function fs(a: number[]) {
  a.sort();
}

function fsf(a: number[]) {
  a?.sort();
}

[1, 2, 3].sort();

const foo = 1;
const bar = 2;
const baz = 3;
[foo, bar, baz].sort();

function getNumber() {
  return 2;
}
[2, 3].sort();

const one = 1;
const two = 2;
const three = 3;
[one, two, three].sort();
